@import "./var.scss";

.common-list-page {
  padding-bottom: 30px;

  .filter {
    background: #fff;
    padding: 3px;
    border-bottom: 3px solid #e5e5e5;
    margin-bottom: 5px;
    font-size: 12px;
    dl {
      position: relative;
      margin-bottom: 6px;
    }
    dt {
      position: absolute;
      left: 0;
      top: 6px;
      width: 72px;
      color: $lightColor;
      font-size: 14px;
      text-align: right;
    }
    dd {
      padding: 6px 0 0 85px;
      height: 28px;
      position: relative;
      overflow: hidden;
      &>span {
        padding: 0 5px;
        color: #000;
        line-height: 22px;
        display: inline-block;
        margin-bottom: 6px;
        margin-right: 1px;
        cursor: pointer;
        &:hover,
        &.selected {
          background: $mainColor;
          color: #fff;
          text-decoration: none;
        }
      }
      label {
        font-size: 12px;
      }
    }
  }

  .hotel-search {
    margin-bottom: 5px;
    padding: 13px 20px;
    background-color: #fff;
    border-bottom: 3px solid #e5e5e5;
    & > div {
      position: relative;
      display: inline-block;
      & > span {
        padding-right: 4px;
      }
    }
    .search-btn {
      display: inline-block;
      text-align: center;
      vertical-align: middle;
      width: 72px;
      line-height: 24px;
      vertical-align: 1px;
      background-color: $mainColor;
      color: #fff;
      margin-bottom: 2px;
      box-shadow: 0 1px 0 rgba(246, 135, 9, 0.7);
      border: none;
      &:hover {
        cursor: pointer;
        background-color: $lightColor;
      }
    }
    ::-webkit-input-placeholder,
    :-ms-input-placeholder,
    ::placeholder {
      color: #999;
    }
  }
  .date-picker {
    padding: 0;
    border: none;
    box-shadow: none;
    & > div {
      &:first-child {
        input {
          margin-right: 0;
        }
      }
    }
  }
  .hotel-search,
  .date-picker {
    input,
    select {
      width: 105px;
      margin-right: 32px;
      line-height: 20px;
      font-size: 12px;
      padding-left: 6px;
      outline: none;
      border: 1px solid #ccc;
      border-radius: 0;
      font-size: 12px;
      color: #222;
      &:focus {
        border-color: $mainColor;
        box-shadow: 0 0 5px 0 rgba(246, 135, 9, 0.5);
      }
    }
    select {
      height: 24px;
    }
  }
  .date-picker input {
    line-height: 22px;
  }

  .cnt {
    overflow: hidden;
    zoom: 1;
  }

  .cnt-left {
    width: 980px;
    float: left;
    .pro-list {
      border-bottom: 2px solid #e5e5e5;
      .item {
        height: 270px;
        background: #fff;
        border: 1px solid #fff;
        border-bottom: 3px solid #e5e5e5;
        position: relative;
        margin-bottom: 6px;
        &:hover {
          border-color: $mainColor;
        }
      }
      .img-wrap,
      .img-wrap > img {
        width: 380px;
        height: 266px;
      }
      .img-wrap {
        position: absolute;
        left: 0;
        top: 0;
        overflow: hidden;
      }
      .item-info {
        padding: 28px 50px 0 405px;
      }
      .title {
        a{
          display: block;
          height: 50px;
          line-height: 25px;
          font-size: 18px;
          font-weight: normal;
          overflow: hidden;
          color: #000;
          &:hover {
            color: $mainColor;
            transition: all 0.3s;
          }
        }
      }
      .des {
        height: 40px;
        line-height: 20px;
        margin-bottom: 5px;
        color: #7c7c7c;
        overflow: hidden;
      }
      .label {
        color: #919191;
        padding-bottom: 15px;
        margin-top: 20px;
        span {
          display: inline-block;
          line-height: 24px;
          padding: 0 10px;
          border: 1px solid #999;
          & + span {
            margin-left: 10px;
          }
        }
      }
      .price {
        border-top: 1px dashed #a4a4a4;
        color: $mainColor;
        line-height: 35px;
        padding-top: 15px;
        em {
          font-size: 24px;
        }
        a {
          display: inline-block;
          height: 34px;
          line-height: 34px;
          background: $mainColor;
          color: #fff;
          padding: 0 24px;
          font-size: 14px;
          font-weight: normal;
          vertical-align: top;
          margin-left: 10px;
          &:hover {
            transition: all 0.3s;
            text-decoration: underline;
          }
        }
        span {
          display: inline-block;
          width: 16px;
          height: 16px;
          margin-left: 3px;
          border: 1px solid $mainColor;
          font-size: 12px;
          line-height: 15px;
          text-align: center;
          font-style: normal;
        }
      }
      .location {
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 0 10px;
        width: 380px;
        height: 40px;
        line-height: 40px;
        color: #fff;
        background-color: rgba(0, 0, 0, 0.4);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        span {
          margin-right: 3px;
          color: #fff;
          font-size: 16px;
        }
      }
    }
    .pro-list.strategy {
      .title{
        a{
          height: auto;
          max-height: 50px;
        }
      }
      .time{
        margin-bottom: 10px;
        color: #555;
      }
      .des {
        height: 62px;
        margin-bottom: 15px;
      }
      .price {
        position: relative;
        padding-top: 20px;
        a {
          margin-left: 0;
        }
      }

    }
  }

  .cnt-right {
    width: 205px;
    float: right;
  }

  // 目的地
  &.destination {
    padding: 0 0 25px;
    ul {
      padding: 20px;
      background-color: #fff;
    }
    .item {
      display: inline-block;
      margin-right: 13px;
      margin-bottom: 15px;
      padding-bottom: 15px;
      text-align: center;
      transition: all 0.3s;
      &:nth-child(4n) {
        margin-right: 0;
      }
      &:hover {
        transition: all 0.3s;
        transform: translateY(-4px);
        box-shadow: 2px 2px 10px 3px rgb(0 0 0 / 10%);
      }
      img {
        width: 280px;
        height: 200px;
      }
      h3 {
        margin-top: 5px;
        margin-bottom: 5px;
        font-size: 18px;
        font-weight: normal;
        &:hover {
          text-decoration: underline;
        }
        em{
          color: $mainColor;
        }
        span{
          font-size: 12px;
          color: #7c7c7c;
        }
      }
      p {
        color: #7c7c7c;
      }
      .desc{
        display: none;
      }
    }
  }
}
